﻿using Admin.Core.Common.Input;
using Admin.Core.Common.Output;
using Admin.Core.Model.Warehouse;
using Admin.Core.Service.Warehouse.XbcWarehouse.Input;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace Admin.Core.Service.Warehouse.XbcWarehouse
{
    public interface IXbcWarehouseService
    {
        /// <summary>
        /// 获取单个仓库信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<IResponseOutput> GetAsync(long id);
        /// <summary>
        /// 分页查询仓库
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<IResponseOutput> PageAsync(PageInput<XbcWarehouseEntity> input);


        /// <summary>
        /// 获取仓库的下拉
        /// </summary>
        /// <returns></returns>
        Task<IResponseOutput> GetWarehouseList();

        /// <summary>
        /// 新增仓库
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<IResponseOutput> AddAsync(XbcWarehouseAddInput input);
        
        /// <summary>
        /// 修改仓库
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<IResponseOutput> UpdateAsync(XbWarehouseUpdateInput input);

        /// <summary>
        /// 软删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<IResponseOutput> SoftDeleteAsync(long id);

        /// <summary>
        /// 批量软删除
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<IResponseOutput> BatchSoftDeleteAsync(long[] ids);
    }
}
